package com.pptiku.jh.routerdemo.dagger2.module;

import com.pptiku.jh.routerdemo.dagger2.annotation.LilyFlower;
import com.pptiku.jh.routerdemo.dagger2.annotation.RoseFlower;
import com.pptiku.jh.routerdemo.dagger2.bean.Flower;
import com.pptiku.jh.routerdemo.dagger2.bean.Lily;
import com.pptiku.jh.routerdemo.dagger2.bean.Rose;

import dagger.Module;
import dagger.Provides;

/**
 * Created by ytf on 2018/6/6.
 * Description:
 */
@Module
public class FlowerModule
{
    @Provides
    @RoseFlower
    public Flower provideRose()
    {
        return new Rose();
    }

    @Provides
    @LilyFlower
    public Flower provideLily()
    {
        return new Lily();
    }


}
